Kanzi 4.0.0-beta2
kanzi::gfx::ConstantDataCommand Struct Reference

Sets current constant data in a render pipeline. More...

#include <kanzi/gfx/commands.hpp>

Inheritance diagram for kanzi::gfx::ConstantDataCommand:
[legend]

Public Member Functions

 ConstantDataCommand ()
 Constructor.
 
- Public Member Functions inherited from kanzi::gfx::BaseCommand
uint32_t getSize () const
 Gets the command size in bytes.
 
uint8_t getTag () const
 Gets the command tag.
 
CommandType getType () const
 Gets the command type.
 
void setTag (uint8_t tag)
 Sets the command tag.
 

Public Attributes

array< byte, gfx::limits::ConstantDataSizedata
 The constant data.
 

Additional Inherited Members

- Protected Member Functions inherited from kanzi::gfx::BaseCommand
 BaseCommand (CommandType t, uint32_t s)
 Constructor.
 
 BaseCommand (const BaseCommand &other)
 Copy Constructor.
 
BaseCommandoperator= (const BaseCommand &other)
 Assignment operator.
 

Detailed Description

Sets current constant data in a render pipeline.

Kanzi uses the constant data for all draw commands until either another constant data command, or the end of the render pipeline.

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ ConstantDataCommand()

kanzi::gfx::ConstantDataCommand::ConstantDataCommand ( )
inline

Constructor.

Member Data Documentation

◆ data

array<byte, gfx::limits::ConstantDataSize> kanzi::gfx::ConstantDataCommand::data

The constant data.

The data must follow the layout rules defined in the shader or reflection information. You can use the reflection::UniformBlockBuilder to assist with data layout.


The documentation for this struct was generated from the following file: